// 农机类型管理
import request from "@/api/index"



export default {
    /**
     * @description: 批次号查询 *代表必填
     * @param {Object} params *
     * @return {Object}
     */
    queryBatchcode(params) {
        const url = "nc/query/queryBatchcode"
        return request.post(url, {
            ...params
        })
    },
    /**
     * @description: 产成品入库查询 *代表必填
     * @param {Object} params *
     * @return {Object}
     */
    queryFinprodin(params) {
        const url = "/nc/query/queryFinprodin"
        return request.post(url, {
            ...params
        })
    },

    /**
 * @description: 产成品入库单推送 *代表必填
 * @param {Object} params *
 * @return {Object}
 */
    productinSave(params) {
        const url = "/nc/business/ic/productin/save"
        return request.post(url, {
            ...params
        })
    },

    /**
     * @description: 产成品入库单-查看明细 *代表必填
     * @param {String/Number} id *
     * @return {Object}
     */
    queryFinprodinDtl(params) {
        const url = "/nc/query/queryFinprodinDtl"
        return request.get(url, params)
    },

    /**
    * @description: 在产盘点单查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryInprocess(params) {
        const url = "/nc/query/queryInprocess"
        return request.post(url, {
            ...params
        })
    },

    /**
   * @description: 在产盘点单-查看明细 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
    queryInprocessDtl(params) {
        const url = "/nc/query/queryInprocessDtl"
        return request.get(url, params)

    },

    /**
    * @description: 材料出库单推送 *代表必填
    * @param {Object} params *
    *  @return {Object}
    */
    materialoutSave(params) {
        const url = "/nc/business/ic/materialout/save"
        return request.get(url, params)
    },

    /**
   * @description: 材料出库查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
    queryMaterial(params) {
        const url = "/nc/query/queryMaterial"
        return request.post(url, {
            ...params
        })
    },

    /**
     * @description: 材料出库单-查看明细 *代表必填
     * @param {Object} params *
     *  @return {Object}
     */
    queryMaterialDtl(params) {
        const url = "/nc/query/queryMaterialDtl"
        return request.get(url, params)
    },

    /**
    * @description: 销售订单查询 *代表必填
    * @param {Object} params *
    *  @return {Object}
    */
    querySaleOrder(params) {
        const url = "/nc/query/querySaleOrder"
        return request.post(url, {
            ...params
        })
    },

    /**
    * @description: 销售订单-查看明细 *代表必填
    * @param {Object} params *
    *  @return {Object}
    */
    querySaleOrderDtl(params) {
        const url = "/nc/query/querySaleOrderDtl"
        return request.get(url, params)
    },

    /**
    * @description: 销售出库查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    querySaleOut(params) {
        const url = "/nc/query/querySaleOut"
        return request.post(url, { ...params })
    },

    /**
    * @description: 销售出库单-查看明细 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    querySaleOutDtl(params) {
        const url = "/nc/query/querySaleOutDtl"
        return request.get(url, params)
    },

    /**
    * @description: 调拨入库查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryTransin(params) {
        const url = "/nc/query/queryTransin"
        return request.post(url, { ...params })
    },

    /**
    * @description: 调拨入库-查看明细 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryTransinDtl(params) {
        const url = "/nc/query/queryTransinDtl"
        return request.get(url, params)
    },

    /**
    * @description: 调拨出库查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryTransout(params) {
        const url = "/nc/query/queryTransout"
        return request.post(url, { ...params })
    },

    /**
    * @description: 调拨出库-查看明细 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryTransoutDtl(params) {
        const url = "/nc/query/queryTransoutDtl"
        return request.get(url, params)
    },
    /**
    * @description: 转库单查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryWhstrans(params) {
        const url = "/nc/query/queryWhstrans"
        return request.post(url, { ...params })
    },

    /**
    * @description: 转库单-查看明细 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryWhstransDtl(params) {
        const url = "/nc/query/queryWhstransDtl"
        return request.get(url, params)
    },

}